package com.gitee.neuray.security.mail.feign;

import com.gitee.neuray.security.common.msg.ObjectRestResponse;
import com.gitee.neuray.security.mail.constants.MailApiConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = MailApiConstants.RIBBON_ADDRESS)
public interface WBMailServiceFeignClient {
    //添加邮件
    @RequestMapping(value="/api/mail/firstApproverStart",method = RequestMethod.POST)
    ObjectRestResponse firstApproverStart();

    @RequestMapping(value="/api/mail/secondApproverStart",method = RequestMethod.POST)
    ObjectRestResponse secondApproverStart();

    @RequestMapping(value="/api/mail/firstApproverEnd",method = RequestMethod.POST)
    ObjectRestResponse firstApproverEnd();

    @RequestMapping(value="/api/mail/secondApproverEnd",method = RequestMethod.POST)
    ObjectRestResponse secondApproverEnd();

    @RequestMapping(value="/api/mail/thirdApprover",method = RequestMethod.POST)
    ObjectRestResponse thirdApprover();

    @RequestMapping(value="/api/mail/fourthApprover",method = RequestMethod.POST)
    ObjectRestResponse fourthApprover();
}
